Release 10.1A: OpenEdge Development:
Java Open Clients
Finding a row in a ProDataGraph
You can find a row (
ProDataObjectinstance) in aProDataGraphin different ways, depending on how the tables (ProDataObjectcollections) are related (whatProDataRelationMetaDatais associated with theProDataGraph). If a table does not participate in any data-relations, the only way to find a row is to search through the entireProDataObjectlist that you can get using theProDataGraphgetProDataObjects()method for a given table. If you know that a table you are searching participates in a data-relation, you can use the data-relation to find related parent and child rows for eachProDataObjectin the table.Finding parent rows
With the name of a data-relation that identifies a parent table, you can use the
ProDataObjectgetParentRow()method to return the parent row for aProDataObjectinstance.Finding child rows
With the name of a data-relation that identifies a child table, you can use the
ProDataObjectgetChildRows()method to return a list of child rows for aProDataObjectinstance. You can then search this filtered list of child rows to find the appropriateProDataObject.For more information on retrieving data from an output
ProDataGraph, see the "Passing a ProDataGraph as OUTPUT" section.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |